<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>申请书查看</title>
<c:if test="${empty param.include}">
	<%@ include file="/common/meta.jsp"%>
</c:if>
<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
<script type="text/javascript" src="${res_app}/js/app/proposal/irisPrpPrepare.js"></script>
<script type="text/javascript">
$(function(){
	$("table.t_css").each(function(){
		$(this).find("tr:even").addClass("li_1");
		$(this).find("tr:odd").addClass("li_2");
	});
	
	if("${param.viewAttach}"=="true")
		$("#tab9").click();
	if("${param.auditflag}"==""||"${param.auditflag}"==null)
		$("#tab1").click();
    if("${param.auditflag}"=="edit")
		$("#tab9").click();
});
</script>
<style type="text/css">
	table{table-layout:fixed;}
	body{word-wrap:break-word; word-break:break-all;}
</style>
</head>

<body>
	<input type="hidden" id="prpName" value="${prpName}" />
	<c:set var="xmlstr" value="${xmlData}" />
	<x:parse xml="${xmlstr}" var="xmlData" />
	<input type="hidden" id="childDiv" class="thickbox"/>
	<input type="hidden" id="filePath" value="${ctx}/file/ajax-filedownload?fileCode=" />
	<input type="hidden" id="menuId" value="${param.menuId}" />
	<div id="showMessage"></div>
	<div>
		
		<div class="clear_h15"></div>
		<div>
			<div class="bar_b">
				<security:authorize ifNotGranted="A_MENU_REVIEW_09"><c:if test="${not empty fbl.pdfViewUrl}"><a href="#" onclick="return genPdf('<iris:des3 code="${posCode}"/>');" class="yase ico_pdf">查看pdf</a></c:if></security:authorize>
				<input type="hidden" id="pdfStatus" value="${pdfStatus}" /> 
				<span class="right">版本号：<span name="proposal/prp_version" id="prp_version"><x:out select="$xmlData/data/proposal/prp_version" /></span></span>
			</div>
			<c:set var="prpno"><x:out select="$xmlData/data/proposal/prp_no"/></c:set>
			<c:if test="${not empty prpno}">
			<div class="bar_b">
				<span class="right">科学部编号：<span>${prpno}</span></span>
			</div>
			</c:if>
			<form method="post" id="mainForm">
				<input type="hidden" value="<x:out select="$xmlData/data/proposal/grant_no" />" id="grantNo"
					name="grantNo"> 
				<input type="hidden" value="<x:out select="$xmlData/data/proposal/sub_grant_no" />" id="subGrantNo" name="subGrantNo">
				<input type="hidden" value="${posCode}" id="posCode" name="posCode"> 
				<input type="hidden" value="${xmlData}" id="xmlData" name="xmlData">
				<input type="hidden" value="${param.prpCodeStr}" id="prpCode" name="prpCode">
			</form>
				<div class="word_title">
					<c:set var="statYear">${statYear}</c:set>
					<c:if test="${empty statYear}">
						<c:set var="statYear"><x:out select="$xmlData/data/proposal/stat_year" /></c:set>
					</c:if>
					<input type="hidden" name="proposal/stat_year" value="${statYear}">
					<c:set var="grantName">${param.grantName}</c:set>
					<c:if test="${empty grantName}">
						<c:set var="grantName"><x:out select="$xmlData/data/proposal/grant_name" /></c:set>
					</c:if>
					
					<span name="proposal/grant_name" ><x:out select="$xmlData/data/proposal/grant_name" /></span>-项目申请书 (<span name="proposal/stat_year">${statYear}</span>年)<br />	
					<input type="hidden" name="proposal/sub_grant_name" value="<x:out select="$xmlData/data/proposal/sub_grant_name" />" />
					<input type="hidden" name="proposal/grant_code" value="<x:out select="$xmlData/data/proposal/grant_code" />" />
					<input type="hidden" name="proposal/grant_no" value="<x:out select="$xmlData/data/proposal/grant_no" />" />							
					<input type="hidden" name="proposal/sub_grant_code" value="<x:out select="$xmlData/data/proposal/sub_grant_code" />" />
					<input type="hidden" name="proposal/sub_grant_no" value="<x:out select="$xmlData/data/proposal/sub_grant_no" />" />
					<input type="hidden" name="proposal/help_grant_code" value="<x:out select="$xmlData/data/proposal/help_grant_code" />" />
					<input type="hidden" name="proposal/help_grant_no" value="<x:out select="$xmlData/data/proposal/help_grant_no" />" />
					<c:set var="formCode"><x:out select="$xmlData/data/proposal/form_code" /></c:set>
					<c:if test="${empty formCode}"><c:set var="formCode" value="${param.formCode}"></c:set></c:if>
					<input type="hidden" name="proposal/form_code" value="${formCode}" />
				</div>
				<div id="tabnav">
					<ul>
						<li id="tab1" onclick="changeTab(this.id)"><a href="###"><span>基本信息</span>
						</a>
						</li>
						<li id="tab2" onclick="changeTab(this.id)"><a href="###"><span>单位及负责人</span>
						</a>
						</li>
						<li id="tab3" onclick="changeTab(this.id)" ><a href="###"><span>项目详情</span>
						</a>
						</li>
						<li id="tab4" onclick="changeTab(this.id)" ><a href="###"><span>General Information</span>
						</a>
						</li>
						<li id="tab5" onclick="changeTab(this.id)"><a href="###"><span>项目经费</span>
						</a>
						</li>
						<li id="tab6" onclick="changeTab(this.id)" ><a href="###"><span>考核指标</span>
						</a>
						</li>
						<li id="tab7" onclick="changeTab(this.id)" ><a href="###"><span>可行性报告</span>
						</a>
						</li>
						<li id="tab8" onclick="changeTab(this.id)" ><a href="###"><span>计划进度</span>
						</a>
						</li>
						<li class="down" id="tab9" onclick="changeTab(this.id)" ><a href="###"><span>附件列表</span>
						</a>
						</li>
					</ul>
				</div>
				
				<!-- 基本信息 -->
				<div class="tab_box" id="fragment-tab1" style="display: none">
					<jsp:include page="../info/prpInfoEdit_gjhz.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				<!--单位及负责人 -->
				<div class="tab_box" id="fragment-tab2" style="display: none">
					<jsp:include page="../org/prporg_attend_gjhz.jsp" >
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				
				<!-- 项目详情 -->
				<div class="tab_box" id="fragment-tab3" style="display: none">
					<jsp:include page="../product/prpproduct_gjhz.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				
				<!--General Information-->
				<div class="tab_box" id="fragment-tab4" style="display: none">
					<jsp:include page="../info/prpgeneralinfo_gjhz.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				
				<!-- 项目经费-->
				<div class="tab_box" id="fragment-tab5" style="display: none">
					<jsp:include page="../fund/prpfundedit_gjhz.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				
				<!-- 考核指标 -->
				<div class="tab_box" id="fragment-tab6" style="display: none">
					<jsp:include page="../goal/prpgoaledit_gjhz.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				
				<!-- 可行性报告 -->
				<div class="tab_box" id="fragment-tab7" style="display: none">
					<jsp:include page="../content/prpContentEdit_zdzx.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				
				<!-- 计划进度-->
				<div class="tab_box" id="fragment-tab8" style="display: none">
					<jsp:include page="../milestone/prpmilestoneedit_zdzx.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				
				<!-- 附件列表 -->
				<div class="tab_box" id="fragment-tab9" >
					<jsp:include page="../attach/prpAttachEdit.jsp">
						<jsp:param value="${xmlstr}" name="xmlstr" />
					</jsp:include>
				</div>
				<div class="bar_btn02">
				<c:if test="${empty param.include}">
					<table border="0" cellpadding="0" cellspacing="1" width="100%">
						<tr>
							<td align="center">
								<c:choose>
									<c:when test="${ltype=='link' }">
										<input type="button" class="button_02" value="返回" onclick="javascript:history.back(-1);">
									</c:when>
									<c:otherwise>
										<input class="button_02" type="button" value="关闭" onclick="javascript:parent.tb_remove();">
									</c:otherwise>
								</c:choose>
							</td>
						</tr>
					</table>
				</c:if>
				</div>
		</div>
		<div class="clear_h15"></div>
	</div>
</body>

</html>